import 'package:flutter/physics.dart';
import 'package:get/get.dart';
import 'package:myapp/app/data/api/providers/api_provider.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

import 'data/repository/comm_repository.dart';

class InitBinding extends Bindings{

  //全局初始化
  @override
  void dependencies() {
    print("InitBinding dependencies");
    Get.lazyPut(() => ApiProvider(), fenix: true);
    Get.lazyPut<CommRepository>(() => CommRepository(), fenix: true);
  }

}